x86: mask out unknown features from Xen's capabilities
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 24 Mar 2016 15:05:37 +0000 (16:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 24 Mar 2016 15:05:37 +0000 (16:05 +0100)
commit54d346e5de4cb838cff6f3b2697311efd75a6f99
tree3483be2bf71f8fadbfcbe193ca11a1ebca8e9160
parentc452cf4457922fbdbde0f35cef336b18cae6277f
x86: mask out unknown features from Xen's capabilities

If Xen doesn't know about a feature, it is unsafe for use and should be
deliberately hidden from Xen's capabilities.

This doesn't make a practical difference yet, but will make a difference
later when the guest featuresets are seeded from the host featureset.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/Makefile
xen/arch/x86/cpu/common.c
xen/arch/x86/cpuid.c [new file with mode: 0644]
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/cpuid.h [new file with mode: 0644]
xen/tools/gen-cpuid.py